<template>
  <div>
      <Card/>
      <div>{{data}}</div>
  </div>
</template>
<script setup lang="ts">
import { ref,Ref, reactive ,inject} from "vue";
import Card from "./Card.vue";
// 子组件注入父组件传的值
const data = inject('falg')
</script>
<style scoped>

</style>
